import service from '@/utils/request'

// 创建游戏
export const createQmGame = (data) => {
  return service({
    url: '/qmGame/createQmGame',
    method: 'post',
    data
  })
}

// 删除游戏
export const deleteQmGame = (id) => {
  return service({
    url: `/qmGame/deleteQmGame?id=${id}`,
    method: 'delete',
  })
}


// 更新游戏
export const updateQmGame = (data) => {
  return service({
    url: '/qmGame/updateQmGame',
    method: 'put',
    data
  })
}

// 查找游戏
export const findQmGame = (id) => {
  return service({
    url: `/qmGame/findQmGame?id=${id}`,
    method: 'get',
  })
}

// 获取游戏列表
export const getQmGameList = (params) => {
  return service({
    url: '/qmGame/getQmGameList',
    method: 'get',
    params
  })
} 